<link rel="stylesheet" href="/css/other.css" type="text/css" />

<%= render "cip/pages/banner" %>
<div class="grid ovf clear">
  <%= render "cip/pages/sidebar" %>

   <div class="fr-box fr ovf">
      <div class="bread fl c0b f14"><a href="/">首页</a><span> > </span><% @category.ancestors.each do |category| %><a href="<%= cip_category_path(category) %>"><%= category.title %></a><span> > </span><% end %><a href="<%= cip_category_path(@category) %>"><%= @category.title %></a></div>

      <div class="text fl clear">
        <ul class="courses">
          <% @category.pages.each do |page| %>
            <li class="course">
              <div>
                <a href="<%= page.url %>" target="_blank">
                  <img width="200" height="142" src="<%= page.avatar.blank? ? page.metadata['视频缩略图链接'] : page.avatar.url %>">
                </a>
              </div>
                <h2 class="f14">
                  <a href="<%= page.url %>" target="_blank"><%= truncate page.title, length: 16 %></a>
                </h2>
                <div class="one ove-hidden">
                  <span class="fl"><%= l page.created_at, format: :date %></span>
                  <span class="fr">播放次数：<%= page.view_count || 0 %></span>
                </div>
            </li>
          <% end %>
        </ul>

      </div>
   </div>
</div>
